The model item passed into the dictionary is of type 'System.Data.Objects.ObjectResult`1?

You are getting this error on your View. You need to reference the same object type which you are retuning from your controller action.

You are getting this error on your View. You need to reference the same object type which you are retuning from your controller action. For example, if you are returning type of List from your controller action, you can only make your view strongly typed to List or IList or IEnumerable and etc.

I have edited my post. I have added the view, as you can see it is strongly type to NHLStats2.Models. ListLeagueLeaders_Result, shouldn't it be that way?

Is that the root of the problem? If so, what would you replace this with? – JFB Dec 17 at 21:20 replace @model NHLStats2.Models.

ListLeagueLeaders_Result with @model ObjectResult. It should work as far as I can tell by looking at your code. – tugberk Dec 17 at 21:33 @JFB see my comment above.

– tugberk Dec 17 at 21:39 Ok, that fixed the problem! – JFB Dec 17 at 21:59.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions